<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('banner', function (Blueprint $table) {
            $table->tinyInteger('state',false)->default(1)->comment('banner状态0，1');

        });

        Schema::table('course_type', function (Blueprint $table) {
            $table->tinyInteger('state',false)->default(1)->comment('课程类别状态0，1');
            
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('banner', function (Blueprint $table) {
            $table->dropColumn('state');
        });

        Schema::table('course_type', function (Blueprint $table) {
            $table->dropColumn('state');
        });
    }
}
